ActionController::Routing::Routes.draw do |map|
  map.contact_us '/contact_us', :controller => 'contact_us', :action => 'index'
  map.contact_us_send '/contact_us/send_query', :controller => 'contact_us', :action => 'send_query', :conditions => {:method => :post}
  map.materials_selector "materials_selector" ,:controller => "materials" ,:action => "selector", :conditions => {:method => :get}
  map.materials_save_wish_list '/materials/save_wish_list', :controller => 'materials', :action => 'save_wish_list', :conditions => {:method => :post}
  map.show_selector '/materials/show_selector/:id', :controller => 'materials', :action => 'show_selector'
  map.materials_redirect_back '/materials/redirect_back/:url', :controller => 'materials', :action => 'redirect_back'
  map.localusers_redirect_back '/localusers/redirect_back/:url', :controller => 'localusers', :action => 'redirect_back'
  map.contacts_redirect_back '/contacts/redirect_back/:url', :controller => 'contacts', :action => 'redirect_back'
  map.profiles_redirect_back '/profiles/redirect_back/:url', :controller => 'profiles', :action => 'redirect_back'
  map.contact_profiles_redirect_back '/contact_profiles/redirect_back/:url', :controller => 'contact_profiles', :action => 'redirect_back'
  map.contact_profiles_update '/contact_profiles/update', :controller => 'contact_profiles', :action => 'update'
  map.my_wish_list_index_init '/my_wish_lists_init' ,:controller => "my_wish_lists" ,:action => 'index_init'
  map.my_wish_list_edit '/my_wish_lists/edit/' ,:controller => "my_wish_lists" ,:action => 'edit'
  map.my_wish_list_destroy '/my_wish_lists/destroy/' ,:controller => "my_wish_lists" ,:action => 'destroy', :conditions => {:metohd => :delete}
  map.my_wish_list_up_material '/my_wish_lists/up_material/:materials_wish_list_id' ,:controller => "my_wish_lists" ,:action => 'up_material'
  map.my_wish_list_down_material '/my_wish_lists/down_material/:materials_wish_list_id' ,:controller => "my_wish_lists" ,:action => 'down_material'
  map.my_wish_list_delete_material '/my_wish_lists/delete_material/:materials_wish_list_id' ,:controller => "my_wish_lists" ,:action => 'delete_material'
  map.my_wish_list_paginate_materials '/my_wish_lists/paginate_materials/', :controller => 'my_wish_lists', :action => 'paginate_wish_list_materials'  
  map.my_wish_list_define_materials_to_special_list '/my_wish_lists/define_materials_to_special_list/' ,:controller => "my_wish_lists" ,:action => 'define_materials_to_special_list_from_wish_list'
  map.my_wish_list_define_materials_to_cart_from_catalog '/my_wish_lists/define_materials_to_cart_from_catalog/' ,:controller => "my_wish_lists" ,:action => 'define_materials_to_cart_from_catalog'
  map.my_wish_list_define_materials_to_cart_from_material_details '/my_wish_lists/define_materials_to_cart_from_material_details/' ,:controller => "my_wish_lists" ,:action => 'define_materials_to_cart_from_material_details'
  map.my_wish_list_add_materials_to_special_list '/my_wish_lists/add_materials_to_special_list/' ,:controller => "my_wish_lists" ,:action => 'add_materials_to_special_list'
  map.my_wish_list_edit_material '/my_wish_lists/edit_material/:materials_wish_list_id' ,:controller => "my_wish_lists" ,:action => 'edit_material_wish_list'
  map.my_wish_list_update_material '/my_wish_lists/update_material/' ,:controller => "my_wish_lists" ,:action => 'update_material_wish_list'
  map.my_wish_list_show_material '/my_wish_lists/show_material_details/:materials_wish_list_id' ,:controller => "my_wish_lists" ,:action => 'show_material_details'
  map.my_wish_list_special_return_to '/my_wish_lists/special_return_to' ,:controller => "my_wish_lists" ,:action => 'special_return_to'
  map.my_favorites '/my_favorites', :controller => 'my_wish_lists', :action => 'my_favorites'
  map.my_reservations '/my_reservations', :controller => 'my_wish_lists', :action => 'my_reservations'
  map.my_cart '/my_cart', :controller => 'my_wish_lists', :action => 'my_cart'
  map.my_wish_lists_redirect_back '/my_wish_lists/redirect_back/:url', :controller => 'my_wish_lists', :action => 'redirect_back'
  map.wish_lists_redirect_back '/wish_lists/redirect_back/:url', :controller => 'wish_lists', :action => 'redirect_back'
  map.wish_list_materials '/wish_lists/wish_list_materials/:id', :controller => 'wish_lists', :action => 'wish_list_materials_index'
  map.wish_list_materials_redirect_back '/wish_lists/wish_list_materials_redirect_back/:url', :controller => 'wish_lists', :action => 'redirect_back'
  map.wish_list_add_material '/wish_lists/wish_list_add_material/:wish_list_id/:material_id', :controller => 'wish_lists', :action => 'wish_list_add_material'
  map.wish_list_delete_material '/wish_lists/wish_list_delete_material/:materials_wish_list_id' ,:controller => "wish_lists" ,:action => 'wish_list_delete_material', :conditions => {:method => :post}
  map.wish_list_up_material '/wish_lists/wish_list_up_material/:materials_wish_list_id' ,:controller => "wish_lists" ,:action => 'wish_list_up_material'
  map.wish_list_down_material '/wish_lists/wish_list_down_material/:materials_wish_list_id' ,:controller => "wish_lists" ,:action => 'wish_list_down_material'
  map.settings_redirect_back '/settings/redirect_back/:url', :controller => 'settings', :action => 'redirect_back'
  map.general_news_letters_redirect_back '/general_news_letters/redirect_back/:url', :controller => 'general_news_letters', :action => 'redirect_back'
  map.thematics_selector_thematics_list_from_paginate '/thematics/selector_thematics_list_from_paginate/', :controller => 'thematics', :action => 'selector_thematics_list_from_paginate'
  map.countries_selector_countries_list_from_paginate '/countries/selector_countries_list_from_paginate/', :controller => 'countries', :action => 'selector_countries_list_from_paginate'
  map.contacts_selector_contacts_list_from_paginate '/contacts/selector_contacts_list_from_paginate/', :controller => 'contacts', :action => 'selector_contacts_list_from_paginate'
  map.localusers_selector_users_list_from_paginate '/localusers/selector_users_list_from_paginate/', :controller => 'localusers', :action => 'selector_users_list_from_paginate'  
  map.material_selector_materials_list_from_paginate '/materials/selector_materials_list_from_paginate/', :controller => 'materials', :action => 'selector_materials_list_from_paginate'
  map.customer_selector_bookshops_list_from_paginate '/customers/selector_bookshops_list_from_paginate/', :controller => 'customers', :action => 'selector_bookshops_list_from_paginate'
  map.customer_selector_bookshop_departments_list_from_paginate '/customers/selector_bookshop_departments_list_from_paginate/', :controller => 'customers', :action => 'selector_bookshop_departments_list_from_paginate'
  map.customer_selector_institutes_list_from_paginate '/customers/selector_institutes_list_from_paginate/', :controller => 'customers', :action => 'selector_institutes_list_from_paginate'
  map.customer_selector_libraries_list_from_paginate '/customers/selector_libraries_list_from_paginate/', :controller => 'customers', :action => 'selector_libraries_list_from_paginate'
  map.customer_selector_library_departments_list_from_paginate '/customers/selector_library_departments_list_from_paginate/', :controller => 'customers', :action => 'selector_library_departments_list_from_paginate'
  map.customer_selector_people_list_from_paginate '/customers/selector_people_list_from_paginate/', :controller => 'customers', :action => 'selector_people_list_from_paginate'
  map.customer_selector_publishers_list_from_paginate '/customers/selector_publishers_list_from_paginate/', :controller => 'customers', :action => 'selector_publishers_list_from_paginate'
  map.descriptors_selector_descriptors_list_from_paginate '/descriptors/selector_descriptors_list_from_paginate/', :controller => 'descriptors', :action => 'selector_descriptors_list_from_paginate'

  map.general_news_letter_materials '/general_news_letters/general_news_letter_materials/:id', :controller => 'general_news_letters', :action => 'general_news_letter_materials_index'
  map.general_news_letter_materials_redirect_back '/general_news_letters/general_news_letter_materials_redirect_back/:url', :controller => 'general_news_letters', :action => 'redirect_back'
  map.general_news_letter_add_material '/general_news_letters/general_news_letter_add_material/:general_news_letter_id/:material_id', :controller => 'general_news_letters', :action => 'general_news_letter_add_material'
  map.general_news_letter_delete_material '/general_news_letters/general_news_letter_delete_material/:materials_general_news_letter_id' ,:controller => "general_news_letters" ,:action => 'general_news_letter_delete_material', :conditions => {:method => :post}
  map.general_news_letter_up_material '/general_news_letters/general_news_letter_up_material/:materials_general_news_letter_id' ,:controller => "general_news_letters" ,:action => 'general_news_letter_up_material'
  map.general_news_letter_down_material '/general_news_letters/general_news_letter_down_material/:materials_general_news_letter_id' ,:controller => "general_news_letters" ,:action => 'general_news_letter_down_material'

  map.tasks_redirect_back '/tasks/redirect_back/:url', :controller => 'tasks', :action => 'redirect_back'
  map.scheduled_tasks_redirect_back '/scheduled_tasks/redirect_back/:url', :controller => 'scheduled_tasks', :action => 'redirect_back'
  map.scheduled_task_logs_redirect_back '/scheduled_task_logs/redirect_back/:url', :controller => 'scheduled_task_logs', :action => 'redirect_back'
  map.edit_contact_user_sign_in '/contacts/edit_contact_user_sign_in', :controller => 'contacts', :action => 'edit_contact_user_sign_in'

  map.catalogs_save_wish_list '/catalogs/save_wish_list', :controller => 'catalogs', :action => 'save_wish_list', :conditions => {:method => :post}
  map.catalogs_free_text_search '/catalogs/free_text_search', :controller => 'catalogs', :action => 'free_text_search'
  map.catalogs_advanced_search '/catalogs/advanced_search', :controller => 'catalogs', :action => 'advanced_search'
  map.catalogs_advanced_search_view '/catalogs/advanced_search_view', :controller => 'catalogs', :action => 'advanced_search_view'
  map.catalogs_index_without_clean '/catalogs/index_without_clean', :controller => 'catalogs', :action => 'index_without_clean'
  map.catalogs_go_to_filters '/catalogs/go_to_filters', :controller => 'catalogs', :action => 'go_to_filters'
  map.catalogs_paginate_tree_thematics_filter '/catalogs/paginate_tree_thematics_filter', :controller => 'catalogs', :action => 'paginate_tree_thematics_filter'
  map.catalogs_paginate_tree_authors '/catalogs/paginate_tree_authors', :controller => 'catalogs', :action => 'paginate_tree_authors'
  map.catalogs_paginate_tree_countries '/catalogs/paginate_tree_countries', :controller => 'catalogs', :action => 'paginate_tree_countries'
  map.catalogs_paginate_tree_editors '/catalogs/paginate_tree_editors', :controller => 'catalogs', :action => 'paginate_tree_editors'
  map.catalogs_paginate_tree_years '/catalogs/paginate_tree_years', :controller => 'catalogs', :action => 'paginate_tree_years'
  map.catalogs_paginate_tree_editions '/catalogs/paginate_tree_editions', :controller => 'catalogs', :action => 'paginate_tree_editions'
  map.catalogs_paginate_materials '/catalogs/paginate_materials', :controller => 'catalogs', :action => 'paginate_materials'
  map.catalogs_show_material '/catalogs/show_material_details/:id' ,:controller => "catalogs" ,:action => 'show_material_details'
  map.catalogs_special_return_to '/catalogs/special_return_to' ,:controller => "catalogs" ,:action => 'special_return_to'

  map.resources :catalog_states
  map.resources :scheduled_task_logs
  map.resources :scheduled_tasks
  map.resources :tasks
  map.resources :news_offered_materials
  map.resources :general_news_letters
  map.resources :descriptors
  map.resources :contact_profiles
  map.resources :my_wish_lists
  map.resources :settings
  map.resources :settings
  map.devise_for :users
  map.resources :localusers
  map.resources :serials
  map.resources :customers
  map.resources :bookshop_departments
  map.resources :bookshops
  map.resources :library_departments
  map.resources :libraries
  map.resources :institutes
  map.resources :institutes
  map.resources :peoples
  map.resources :categories
  map.resources :materials
  map.resources :authors
  map.resources :currencies
  map.resources :publishers
  map.resources :authors
  map.resources :currencies
  map.resources :material_types
  map.resources :thematics
  map.resources :wish_lists
  map.resources :contacts
  map.resources :profiles
  map.resources :contacts
  map.resources :regards
  map.resources :treatments
  map.resources :cities
  map.resources :cities
  map.resources :states
  map.resources :countries
  map.resources :catalogs

  # The priority is based upon order of creation: first created -> highest priority.

  # Sample of regular route:
  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # Sample resource route (maps HTTP verbs to controller actions automatically):
  #   map.resources :products

  # Sample resource route with options:
  #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }

  # Sample resource route with sub-resources:
  #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller

  # Sample resource route with more complex sub-resources
  #   map.resources :products do |products|
  #     products.resources :comments
  #     products.resources :sales, :collection => { :recent => :get }
  #   end

  # Sample resource route within a namespace:
  #   map.namespace :admin do |admin|
  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  #     admin.resources :products
  #   end

  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
  map.root :controller => "wellcome"

  # See how all your routes lay out with "rake routes"

  # Install the default routes as the lowest priority.
  # Note: These default routes make all actions in every controller accessible via GET requests. You should
  # consider removing or commenting them out if you're using named routes and resources.
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
